﻿using Learn.Infraestrutura.Attr;
using Learn.Infraestrutura.Dto.Request;
using Learn.Infraestrutura.Dto.Response;
using Learn.Infraestrutura.EFCore;
using System;
using System.Collections.Generic;
using System.Text;

namespace Learn.Service.Interface
{
    [Provider_]
    public interface I_Login_Service
    {
        /// <summary>
        /// 获取登录历史
        /// </summary>
        /// <returns></returns>
        Api_Result Get_Log_History(int page,int limit,string uid);

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Api_Result Logins(Login_Request_Dto dto);

        /// <summary>
        /// 通过code来获取用户信息
        /// </summary>
        /// <param name="code"></param>
        /// <param name="ip"></param>
        /// <returns></returns>
        SysUsers Get_User_By_LastCode(string code,string ip);

        /// <summary>
        /// 重置用户密码
        /// </summary>
        /// <returns></returns>
        Api_Result Reset_Passwords();
    }
}
